package com.hzw.entity;

import com.hzw.common.MapperGenerator;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;




@Data
@Entity
@Table ( name ="order_commodity" )
public class OrderCommodity {
  private static final long serialVersionUID = 1L;

  @Column(name = "id" )
  @Id
  private String id;

  @Column(name = "order_id" )
  private String orderId;

  @Column(name = "commodity_id" )
  private String commodityId;

  @Column(name = "commodity_name" )
  private String commodityName;

  @Column(name = "commodity_type" )
  private String commodityType;

  @Column(name = "commodity_num" )
  private Integer commodityNum;

  public OrderCommodity () {
  }

  public static void main(String[] args) {
    System.out.println(MapperGenerator.genMapper(OrderCommodity.class));
  }

}
